Skip to content

feat: ban deposits client tests#11504

Merged
skeletor-spaceman merged 10 commits intofeat/ban-deposits-interopfrom
feat/ban-deposits-tests
Aug 29, 2024
Merged

feat: ban deposits client tests#11504
skeletor-spaceman merged 10 commits intofeat/ban-deposits-interopfrom
feat/ban-deposits-tests

Conversation

@skeletor-spaceman
Copy link
Copy Markdown
Collaborator

Description

This PR should ONLY be merged to feat/ban-deposits-interop,

this PR is an extension of: #11362 please refer to it for additional context

@skeletor-spaceman skeletor-spaceman self-assigned this Aug 16, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 78.37838% with 8 lines in your changes missing coverage. Please review.

Project coverage is 77.98%. Comparing base (d5ba5d1) to head (57aa886).

Files Patch % Lines
cannon/mipsevm/testutil/vmtests.go 27.27% 6 Missing and 2 partials ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           feat/ban-deposits-interop   #11504      +/-   ##
=============================================================
- Coverage                      78.10%   77.98%   -0.12%     
=============================================================
  Files                             28       29       +1     
  Lines                           2137     2167      +30     
=============================================================
+ Hits                            1669     1690      +21     
- Misses                           407      413       +6     
- Partials                          61       64       +3     
Flag Coverage Δ
cannon-go-tests 77.98% <78.37%> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
cannon/mipsevm/exec/mips_instructions.go 97.85% <100.00%> (+<0.01%) ⬆️
cannon/mipsevm/exec/mips_syscalls.go 93.66% <100.00%> (+0.27%) ⬆️
cannon/mipsevm/multithreaded/mips.go 71.47% <100.00%> (ø)
cannon/mipsevm/program/load.go 46.42% <ø> (ø)
cannon/mipsevm/singlethreaded/mips.go 94.00% <100.00%> (ø)
cannon/mipsevm/testutil/mips.go 83.83% <100.00%> (+0.33%) ⬆️
cannon/mipsevm/testutil/oracle.go 74.22% <100.00%> (+0.82%) ⬆️
cannon/mipsevm/testutil/state.go 100.00% <100.00%> (ø)
cannon/mipsevm/testutil/vmtests.go 90.52% <27.27%> (-9.48%) ⬇️

Comment thread op-node/rollup/derive/l1_block_info_test.go
// cast keccak $(cast concat-hex 0x0000000000000000000000000000000000000000000000000000000000000003 $(cast keccak 0x01))
// # 0x8afb1c4a581d0e71ab65334e3365ba5511fb15c13fa212776f9d4dafc6287845
func TestAfterForceIncludeSource(t *testing.T) {
source := AfterForceIncludeSource{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this name is not consistent, its after force include, which iirc we moved away from

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we agreed to go with AfterForceInclude, but I'm happy to re-name it to a better name :)

Comment thread op-node/rollup/derive/l1_block_info.go Outdated
Comment thread op-node/rollup/derive/l1_block_info_test.go Outdated
Comment on lines +220 to +224
// sets config to post-interop
cfg.RegolithTime = &zero64
cfg.EcotoneTime = &zero64
cfg.InteropTime = &zero64
cfg.BlockTime = 2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bedrock, Canyon, Fjord, Granite are missing

Copy link
Copy Markdown
Contributor

@protolambda protolambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. I think it would be nice to have a test helper-function to activate all hardforks in a rollup.Config up to and including a specific hardfork name. Then it's easier to prepare test cases for specific forks.

@skeletor-spaceman skeletor-spaceman marked this pull request as ready for review August 29, 2024 21:42
@skeletor-spaceman skeletor-spaceman merged commit ccf505d into feat/ban-deposits-interop Aug 29, 2024
@skeletor-spaceman skeletor-spaceman deleted the feat/ban-deposits-tests branch August 29, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants